package com.app.service;

import com.app.model.DepartmentModel;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.xmlbeans.impl.xb.xsdschema.Public;

import java.util.ArrayList;
import java.util.List;

public interface DepartmentService {


    DepartmentModel getDepByDepId(int id);

    List<DepartmentModel> getDepByDepIdList(int id);

    DepartmentModel getDepLevelByPId(int pid);//查询上级单位level

    List<DepartmentModel> getListByPid(int pid);//查询子集

    Page<DepartmentModel> getPageDepList(int page, int limit,String name,String shortName);//部门管理分页查询

    List<DepartmentModel>getDepTree (Integer pid,Integer level,String name);//根据部门名字筛选

    List<DepartmentModel> selectDepTree(String keyWord,List<Integer> idsList);//全查部门管理列表不分页


    void update(DepartmentModel model);

    void insert(DepartmentModel model);

    void delete(int id);

    List<Integer> getDepId(Integer departmentId);

    Integer getNumByPid(Integer pid);

    Integer DepCount();

    Integer DepartmentCount(List<Integer> idsList);

    DepartmentModel getdepByName(String departmentName);

    List<DepartmentModel> selectDep();

    List<DepartmentModel> getDepList(List<String> singletonList);
}
